Skip to content

feat ydb: add TopicWriteSession support#1183

Open
vasily-sviridov wants to merge 1 commit intouserver-framework:developfrom
vasily-sviridov:sviridov-patch-ydb-topics-write-session-impl
Open

feat ydb: add TopicWriteSession support#1183
vasily-sviridov wants to merge 1 commit intouserver-framework:developfrom
vasily-sviridov:sviridov-patch-ydb-topics-write-session-impl

Conversation

@vasily-sviridov
Copy link
Copy Markdown

TopicClient had read session support but no write session support, requiring users to call GetNativeTopicClient() directly.

This PR adds TopicWriteSession -- a thin coroutine-friendly wrapper over NYdb::NTopic::IWriteSession, mirroring the existing TopicReadSession pattern:

  • GetEvent() -- suspends the coroutine via impl::GetFutureValue(WaitEvent()), then returns the event
  • TryGetEvent() -- non-blocking poll, returns nullopt if no event is buffered
  • Write(), Close(), GetNativeTopicWriteSession() -- thin forwarding wrappers

TopicClient::CreateWriteSession(const TWriteSessionSettings&) is added alongside the existing CreateReadSession


Note: by creating a PR or an issue you automatically agree to the CLA. See CONTRIBUTING.md. Feel free to remove this note, the agreement holds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant